package com.woniu.apartment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.woniu.apartment.mapper.SecurityMapper;
import com.woniu.apartment.domain.Security;
import com.woniu.apartment.service.ISecurityService;

/**
 * 安保设施Service业务层处理
 * 
 * @author yy
 * @date 2023-04-03
 */
@Service
public class SecurityServiceImpl implements ISecurityService 
{
    @Autowired
    private SecurityMapper securityMapper;

    /**
     * 查询安保设施
     * 
     * @param id 安保设施主键
     * @return 安保设施
     */
    @Override
    public Security selectSecurityById(Long id)
    {
        return securityMapper.selectSecurityById(id);
    }

    /**
     * 查询安保设施列表
     * 
     * @param security 安保设施
     * @return 安保设施
     */
    @Override
    public List<Security> selectSecurityList(Security security)
    {
        return securityMapper.selectSecurityList(security);
    }

    /**
     * 新增安保设施
     * 
     * @param security 安保设施
     * @return 结果
     */
    @Override
    public int insertSecurity(Security security)
    {
        return securityMapper.insertSecurity(security);
    }

    /**
     * 修改安保设施
     * 
     * @param security 安保设施
     * @return 结果
     */
    @Override
    public int updateSecurity(Security security)
    {
        return securityMapper.updateSecurity(security);
    }

    /**
     * 批量删除安保设施
     * 
     * @param ids 需要删除的安保设施主键
     * @return 结果
     */
    @Override
    public int deleteSecurityByIds(Long[] ids)
    {
        return securityMapper.deleteSecurityByIds(ids);
    }

    /**
     * 删除安保设施信息
     * 
     * @param id 安保设施主键
     * @return 结果
     */
    @Override
    public int deleteSecurityById(Long id)
    {
        return securityMapper.deleteSecurityById(id);
    }
}
